import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/index',
    name: 'index',
    component: () => import('../views/index.vue'),
    children:[
      {
        path: '/home',
        name: 'home',
        component: () => import('@/views/1/home.vue')
      },
      {
        path: '/curriculum',
        name: 'curriculum',
        component: () => import('@/views/2/curriculum.vue')
      },
      {
        path: '/Appointment',
        name: 'Appointment',
        component: () => import('@/views/3/Appointment.vue')
      },
      {
        path: '/practice',
        name: 'practice',
        component: () => import('@/views/4/practice.vue')
      },
      {
        path: '/my',
        name: 'my',
        component: () => import('@/views/5/my.vue')
      },
    ]
  },
  {
    path: '/xingqing',
    name: 'xingqing',
    component: () => import('@/views/1/xingqing.vue')
  },
  {
    path: '/jiangshi1',
    name: 'jiangshi1',
    component: () => import('@/views/1/jiangshi1.vue')
  },
  {
    path: '/souS',
    name: 'souS',
    component: () => import('@/views/2/souS.vue')
  },
  {
    path: '/Signin',
    name: 'Signin',
    component: () => import('@/views/5/Signin.vue')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('@/views/5/register.vue')
  },
  {
    path: '/chongzhi',
    name: 'chongzhi',
    component: () => import('@/views/5/chongzhi.vue')
  },
  {
    path: '/info',
    name: 'info',
    component: () => import('@/views/5/info.vue')
  },
  {
    path: '/infoof',
    name: 'infoof',
    component: () => import('@/views/5/infoof.vue')
  },
  {
    path: '/guanzhu',
    name: 'guanzhu',
    component: () => import('@/views/5/guanzhu.vue')
  },
  {
    path: '/email',
    name: 'email',
    component: () => import('@/components/email/email.vue')
  },
  {
    path: '/',
    redirect:'/home'
  },

]

const router = new VueRouter({
  mode:"hash",
  routes
})

export default router
